package com.shop.loan.controller;

import com.shop.loan.model.common.Constant;
import com.shop.loan.model.vo.YingCaiParamVo;
import com.shop.loan.service.YingCaiService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping(Constant.apiPrefex + "/yc")
public class YingCaiController {

    @Resource
    YingCaiService yingCaiService;

    @PostMapping("/checkUser")
    public String checkUser(YingCaiParamVo yingCaiParamVo) {
        return yingCaiService.checkUser(yingCaiParamVo);
    }

    @PostMapping("/apply")
    public String apply(YingCaiParamVo yingCaiParamVo) {
        return yingCaiService.apply(yingCaiParamVo);
    }

    @PostMapping("/getUrl")
    public String getUrl(YingCaiParamVo yingCaiParamVo) {
        return yingCaiService.getUrl(yingCaiParamVo);
    }


}
